var _ = require('lodash');
var Mock = require('mockjs');
module.exports = function() {
  return {
    people: _.times(100, function(n) {
      return {
        id: n,
        name: Mock.Random.cname(),
        img: Mock.Random.image('200x100', Mock.Random.color()),
        url: Mock.Random.image('200x100', Mock.Random.color(), '商品图'),
        text: Mock.Random.cparagraph(),
        time: Mock.Random.date('yyyy-MM-dd'),
        price: Mock.mock({
          'number|1-99999': 11
        }),
        star: Mock.mock({
          'number|1-100': 100
        })
      };
    }),
    product: _.times(20, function(n) {
      return {
        id: n,
        title: Mock.Random.csentence(5),
        price: Mock.mock({
          'number|1-999': 11
        })
      };
    }),
    home: _.times(10, function(n) {
      return {
        id: n,
        url: Mock.Random.image('200x100', Mock.Random.color()),
        name: Mock.Random.cname(),
        text: Mock.Random.cparagraph(),
        time: Mock.Random.date('yyyy-MM-dd')
      };
    }),
    phone: _.times(20, function(n) {
      return {
        id: n,
        name: Mock.Random.cname(),
        phone: Mock.mock({
          'number|13111111111-19000000000': 11
        })
      };
    })
  };
};
